﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using HT.PipeLine.UIFuncDataMana.Utils;
using HT.PipeLine.UIFuncBase;

namespace HT.PipeLine.DataMana
{
    public partial class Frm_Start : Form
    {
        public Frm_Start()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
        }

        private void Btn_SaveLog_Click(object sender, EventArgs e)
        {
            if (textBox1.Text!="admin"||textBox2.Text!="admin123")
            {
                MessageBox.Show("用户名或密码错误，请重新输入！");
                return;
            }
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void textBox2_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                Btn_SaveLog_Click(null, null);
            }
        }
    }
}
